package com.gong.DesignPattern.factoryPattern.AbstractFactory;

import com.gong.DesignPattern.factoryPattern.simpleFactory.Phone;

/**
 * @author GongChang
 * @version 1.0
 * @date 2021/6/8 0008 9:11
 */
public class Test {

    public static void main(String[] args) {
        XiaomiFactory xiaomiFactory = new XiaomiFactory();
        IphoneFactory iphoneFactory = new IphoneFactory();

        Pc xiaomipc = xiaomiFactory.makePc();
        Phone xiaomi = xiaomiFactory.makePhone();
        xiaomi.makePhone();

        Pc iphonepc = iphoneFactory.makePc();
        Phone iphone = iphoneFactory.makePhone();
        iphone.makePhone();
    }
}
